<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/hyt/css/hyt_gwc.css" rel="stylesheet" type="text/css">
    <link href="/hyt/css/buyCar.css" rel="stylesheet" type="text/css">
    <script src="hyt/js/hm.js"></script>
    <script src="hyt/js/jquery-1.min.js"></script>
    <script src="hyt/js/DWRShoppingCartHelper.js"></script>
    <script src="hyt/js/util.js"></script>
    <script src="hyt/js/engine.js"></script>
    <script src="hyt/js/AddFavorite.js"></script>
    <script src="hyt/js/login.js"></script>

</head>
<body>
<script type="text/javascript" defer="true">
    var isHasP = false;
    var isChooseP = false;

    function decamount(cartItemId, merId, buyer, divId, count, objId, combiType, price, integral, currAmount, cartType) {
        if(cartType == 1003) {
            alert("0折抢购商品只能够买一个！");
            jQuery("#amount" + itemId).val(1);
            return false;
        }
        var amount = jQuery("#amount" + cartItemId);
        if(amount.val() > 1) {
            amount.val(Number(amount.val()) - 1);
            updateAmount(cartItemId, amount.val(), merId, buyer, "amount" + cartItemId, divId, count, objId, combiType, price, integral, currAmount, cartType);
        }
    }

    function addamount(cartItemId, merId, buyer, divId, count, objId, combiType, price, integral, currAmount, cartType) {
        if(cartType == 1003) {
            alert("0折抢购商品只能够买一个！");
            jQuery("#amount" + itemId).val(1);
            return false;
        }
        var amount = jQuery("#amount" + cartItemId);
        /*if(amount.val()>=currAmount){
alert("对不起，仅能订购"+currAmount+"件!");
amount.val(currAmount);
updateAmount(cartItemId,amount.val(),merId,buyer,"amount"+cartItemId,divId,count,objId,combiType,price,integral,currAmount,cartType);
return false;
}*/
        if(combiType == 1) {
            amount.val(Number(amount.val()) + 1);
            updateAmount(cartItemId, amount.val(), merId, buyer, "amount" + cartItemId, divId, count, objId, combiType, price, integral, currAmount);
        } else {
            //if(amount.val()<currAmount){
            amount.val(Number(amount.val()) + 1);
            updateAmount(cartItemId, amount.val(), merId, buyer, "amount" + cartItemId, divId, count, objId, combiType, price, integral, currAmount);
            //}
        }
    }

    function updateAmount(itemId, newAmount, merId, buyer, elemId, divId, count, objId, combiType, price, integral, currAmount, cartType) {
        if(isNaN(newAmount) || newAmount <= 0) {
            alert("请输入正确的商品数量！");
            jQuery("#amount" + itemId).val(1);
            return false;
        } else if(cartType == 1003) {
            alert("0折抢购商品只能够买一个！");
            jQuery("#amount" + itemId).val(1);
            return false;
        } else {

            var amount = jQuery("#amount" + itemId);

            //alert("amount="+amount);
            //alert("newAmount="+newAmount);
            //alert("currAmount="+currAmount);
            /*
if(amount.val()<currAmount){

}else{
  newAmount=currAmount
  jQuery("#amount"+itemId).val(newAmount);
}
*/
            var params = new Object();
            params["randomT"] = Math.random();
            params["itemId"] = itemId;
            params["newAmount"] = newAmount;
            params["merId"] = merId;
            params["buyer"] = buyer;
            params["elemId"] = elemId;
            jQuery.post("/Cart/UpdateAmounForjQuery.do", params, function(data) {
                //alert(data);
                onUpdateSuccess(data, elemId, itemId, count, objId, newAmount, combiType, price, divId, integral);
            });
        }
    }

    function onUpdateSuccess(StringData, elemId, itemId, count, objId, newAmount, combiType, price, divId, integral) {
        jQuery.ajaxSettings['contentType'] = "application/x-www-form-urlencoded; charset=utf-8";
        jQuery.post("/Cart/hasMoneyPresent.do", function(data) {
            jQuery("#hasMoneyPresentDiv").html(data);
        });
        jQuery.post("/Cart/hasPresentByCount.do", {
            objId: objId,
            objType: combiType,
            itemId: itemId,
            count: newAmount
        }, function(data) {
            jQuery("#selectPresent").html(data);
        });
        jQuery("#cardPromts").load("/Cart/hasCardPrompts.do", StringData);
        var data = StringData.split("---");
        if(data.length == 1) {
            alert(data[0]);
            window.location.reload();
        }
        if(data.length == 2) {
            alert(jQuery.trim(data[0]));
            window.location.reload();
        } else if(data.length == 7) {
            var paramsForCookie = new Object();
            paramsForCookie["itemId"] = itemId;
            paramsForCookie["newAmount"] = data[1];
            jQuery.post("/Cart/changeGoodsAmountForCookie.do", paramsForCookie, function() {});
            //if(data[4]==1){
            // alert('您还可以选择更多的赠品')
            //}
            if(data[5]) {

                var datas = data[5].split(':');
                if(datas[0] == 1002) {
                    if(parseInt(datas[2]) > parseInt(datas[1])) {
                        jQuery("#amount" + itemId).val(datas[1]);
                        alert('抢购商品每次最大的购买数为' + datas[1] + "件");
                        return;
                    }
                }
                //alert("");
            }

            jQuery("#numtotalprice" + itemId).html(data[2]);
            jQuery("#totalPrice").html(data[2]);
            jQuery("#totalPrice4").html(data[2]);
            //jQuery("#totalPrice2").html(data[2]);
            // jQuery("#totalPrice3").html(data[2]);
            jQuery("#totalSavePrice").html(data[3]);
            //jQuery("#totalIntegral").html(FormatNumber(data[6],2));
            jQuery.post("/Cart/TotalNeddPayIntegral.do", function(data) {
                jQuery("#totalIntegral").html(data);
            });
            var price1 = "50.00";
            var price2 = data[2].replace("￥", "");
            var allPrice = parseFloat(price1) - parseFloat(price2);
            //目前50免运费先写死
            //if(allPrice>0){
            // jQuery("#freePrice").html("·您目前的订单金额为<span>"+data[2]+"</span>，还差<span>￥"+allPrice.toFixed(2)+"</span> 就可免运费！<a href='#' onClick='goBackUrl();'>继续购物</a>");
            // }else{
            // jQuery("#freePrice").html("·您目前的订单金额为<span>"+data[2]+"</span>，可以免运费！<a href='#' onClick='goBackUrl();'>继续购物</a>");
            //}
            showDelAllCart(divId, itemId);
            if(combiType == 1) {
                var data2 = new Object();
                data2["articleId"] = objId;
                data2["cartItemAmount"] = newAmount;
                jQuery.ajaxSettings['contentType'] = "application/x-www-form-urlencoded; charset=utf-8";
                jQuery("#bomobjectDiv").load("/IncludeAmount.jsp", data2);

            }
        }
    }

    function showDelAllCart(id, index) {
        jQuery("#" + id + index).slideToggle("fast");
        if(id == "num") {
            // document.location.reload();
        }
        setTimeout(function() {
            jQuery('#' + id + index).hide();
        }, 3000);
    }

    function readCookie(name) {
        var cookieValue = "";
        var search = name + "=";
        if(document.cookie.length > 0) {
            offset = document.cookie.indexOf(search);
            if(offset != -1) {
                offset += search.length;
                end = document.cookie.indexOf(";", offset);
                if(end == -1) end = document.cookie.length;
                cookieValue = unescape(document.cookie.substring(offset, end))
            }
        }
        return cookieValue;
    }

    function goBackUrl() {
        var goBackUrl = readCookie("ShoppingCartGoBack");
        if(goBackUrl == "") {
            location.href = "/?mid=0";
        } else {
            location.href = goBackUrl;
        }
    }

    // 格式化保留两位小数
    function FormatNumber(srcStr, nAfterDot) {
        var srcStr, nAfterDot;
        var resultStr, nTen;
        srcStr = "" + srcStr + "";
        strLen = srcStr.length;
        dotPos = srcStr.indexOf(".", 0);
        if(dotPos == -1) {
            resultStr = srcStr + ".";
            for(i = 0; i < nAfterDot; i++) {
                resultStr = resultStr + "0";
            }
            return resultStr;
        } else {
            if((strLen - dotPos - 1) >= nAfterDot) {
                nAfter = dotPos + nAfterDot + 1;
                nTen = 1;
                for(j = 0; j < nAfterDot; j++) {
                    nTen = nTen * 10;
                }
                resultStr = Math.round(parseFloat(srcStr) * nTen) / nTen;
                return resultStr;
            } else {
                resultStr = srcStr;
                for(i = 0; i < (nAfterDot - strLen + dotPos + 1); i++) {
                    resultStr = resultStr + "0";
                }
                return resultStr;
            }
        }
    }
</script>
<!--购物车页头开始-->
    <div class="header">
    <div class="top">
        <div class="wrappertop">
            <div class="fr">
                您好，欢迎来到广购书城：广州购书中心网上书店！
                <a href="/views/laf_dlym">登录</a>
                <a href="/views/tby_zcym">新用户注册</a>
                <a href="/views/laf_wddd">我的订单</a>
                <a href="http://www.gzbookcenter.com/">企业官网</a>
                <span>400-886-4208</span>
            </div>
            <div class="fl">
                <a onclick="AddFavorite(window.location,document.title)" href="javascript:void(0)">收藏广购书城</a>
                <div class="address">
                    <div class="areamini">送至：<span>广东</span></div>
                    <ul style="display: none">
                        <li><a href="javascript:void(0);">北京</a></li>
                        <li><a href="javascript:void(0);">上海</a></li>
                        <li><a href="javascript:void(0);">天津</a></li>
                        <li><a href="javascript:void(0);">重庆</a></li>
                        <li><a href="javascript:void(0);">河北</a></li>
                        <li><a href="javascript:void(0);">山西</a></li>
                        <li><a href="javascript:void(0);">河南</a></li>
                        <li><a href="javascript:void(0);">辽宁</a></li>
                        <li><a href="javascript:void(0);">吉林</a></li>
                        <li><a href="javascript:void(0);">黑龙江</a></li>
                        <li><a href="javascript:void(0);">内蒙古</a></li>
                        <li><a href="javascript:void(0);">江苏</a></li>
                        <li><a href="javascript:void(0);">山东</a></li>
                        <li><a href="javascript:void(0);">安徽</a></li>
                        <li><a href="javascript:void(0);">浙江</a></li>
                        <li><a href="javascript:void(0);">福建</a></li>
                        <li><a href="javascript:void(0);">湖北</a></li>
                        <li><a href="javascript:void(0);">湖南</a></li>
                        <li><a href="javascript:void(0);" class="selected">广东</a></li>
                        <li><a href="javascript:void(0);">广西</a></li>
                        <li><a href="javascript:void(0);">江西</a></li>
                        <li><a href="javascript:void(0);">四川</a></li>
                        <li><a href="javascript:void(0);">海南</a></li>
                        <li><a href="javascript:void(0);">贵州</a></li>
                        <li><a href="javascript:void(0);">云南</a></li>
                        <li><a href="javascript:void(0);">西藏</a></li>
                        <li><a href="javascript:void(0);">陕西</a></li>
                        <li><a href="javascript:void(0);">甘肃</a></li>
                        <li><a href="javascript:void(0);">青海</a></li>
                        <li><a href="javascript:void(0);">宁夏</a></li>
                        <li><a href="javascript:void(0);">新疆</a></li>
                        <li><a href="javascript:void(0);">台湾</a></li>
                        <li><a href="javascript:void(0);">香港</a></li>
                        <li><a href="javascript:void(0);">澳门</a></li>
                        <li><a href="javascript:void(0);">钓鱼岛</a></li>
                        <li><a href="javascript:void(0);">海外</a></li>
                    </ul>
                </div>
                <script>
                    //头部地址导航显示和隐藏
                    $(".header .top .address").hover(function() {
                        $(this).find("span").css("background-image", "url(images/addr-select-up.png)");
                        $(this).find(".areamini").css("background-color", "#fff");
                        $(this).find("ul").show();
                    }, function() {
                        $(this).find("span").css("background-image", "url(images/addr-select-down.png)");
                        $(this).find(".areamini").css("background-color", "#f1f1f1");
                        $(this).find("ul").hide();
                    })
                    //头部地址导航显示和隐藏

                    ////头部地址导航切换
                    $(".header .top .address ul li a").click(function() {
                        $(this).addClass("selected").parent().siblings().children().removeClass("selected");
                        var selectedAddr = $(this).text();
                        $(".header .top .address span").text(selectedAddr);
                    })
                </script>
            </div>
        </div>
    </div>
    <div class="bottom wrapper">
        <div class="clear"></div>
        <h1>
            <a href="#" target="_blank">
                <img src="/hyt/img/20170823044910724.jpg" width="280" height="30" alt="广购书城"
                     border="0">
            </a>
        </h1>
        <div class="search" style="text-align:right;margin-top:20px;">
            <form  id="searchform" name="searchform" style="margin:0" action="#">
                <input type="hidden" id="thKeywords" name="Keywords">
                <input id="topKeywords" type="text" value="贫穷的本质"
                       onfocus="if (value =='贫穷的本质'){value =''};this.style.color='#000'">
                <input type="submit" value="">
            </form>
        </div>
        <div class="clear"></div>
    </div>
</div>
<!--购物车页头结束-->

<!--购物车主体开始-->
<div class="buyCar wrapper">
    <font color="red">注意：购物车商品一次只能装约30左右商品，如果商品大于30只请分开下单！谢谢！</font>
    <div class="path">
        <ul>
            <li class="cur">
                <span style="background-image:url(/hyt/img/carPath1.png);"></span>我的购物车<i></i>
            </li>
            <li>
                <span style="background-image:url(/hyt/img/carPath2.png);"></span>确认订单信息<i></i>
            </li>
            <li>
                <span style="background-image:url(/hyt/img/carPath3.png);"></span>成功提交订单<i></i>
            </li>
        </ul>
    </div>
    <!-- 商品换购 -->
    <em id="hasMoneyPresentDiv"></em>
    <div class="table-car">
        <table class="title">
            <tbody>
            <tr>
                <th class="t2" style="width: 336px;">商品</th>
                <th class="t3">广购价</th>
                <th class="t5">定价</th>
                <th class="t6">数量</th>
                <th class="t7">操作</th>
            </tr>
            </tbody>
        </table>
        <!--满减-->
        <div class="full">
            <img src="/hyt/img/fullToSub.png">
            满299减65您还差<span style="color:#CC0000">￥191.6</span> ,
            满199减40您还差<span style="color:#CC0000">￥91.6</span> ,
            <a href="/">去凑单</a>
        </div>
        <table class="list">
            <!--当前可卖数-->
            <!--安全可卖数-->
            <tbody>
            <tr>
                <td class="t1">
                    <label>
                        <img :src="g.imagePath">
                    </label>
                </td>
                <td class="td2" v-for="g in g_arr" :value="g.id">

                    <p>
                        <a :href="'/hyt_gwc1.html?id='+g.id" target="_blank"
                           :title="g.bookName">{{g.bookName}}</a>
                    </p>
                    <div id="selectPresent"
                         style="width: 60px; float: right; margin-top: 0px; *margin-top: -13px;">
                        <!--判断是否有订单赠品-->
                    </div>
                    <p></p>
                </td>
                <td class="td3">
                    {{g.discountPrice}}(折)
                </td>
                <td class="td5">{{g.discountPrice}}</td>
                <td class="td6">
                    <div class="Cart_sea_layerFloat01" id="num21247605" tipbox="yes" style="display: none;">
                        <div class="Cart_sea_layer01">
                            <ul>
                                <li style="text-align: center; line-height: 30px;">修改成功！</li>
                                <li style="text-align: left; padding-left: 10px; line-height: 20px;">
                                    您的商品的总金额为：
                                    <span style="color: red"
                                          id="numtotalprice21247605">￥107.40</span>&nbsp;元
                                </li>
                                <li style="text-align: center; line-height: 30px;"><a
                                        href="javascript:void(0);"
                                        onclick="showDelAllCart('num','21247605');"
                                        style="text-decoration: none;">关闭</a></li>
                            </ul>
                        </div>
                        <div class="botImg">
                            <img src="/guanggou/templets/Default/Default/images/mem_little27.gif">
                        </div>
                    </div>

                    <div class="num" style="overflow: hidden;">
                        <i class="add fl" alt=""
                           onclick="decamount(21247605,0,1183067,'num',1,3534682,0,43.7,43.7,7,0);"></i>



                        <input type="text" id="amount21247605" value="1"
                               onchange="updateAmount(21247605,this.value,0,1183067,this.id,'num',1,3534682,0,43.7,43.7,7,0);">


                        <i class="sub fr" alt=""
                           onclick="addamount(21247605,0,1183067,'num',1,3534682,0,43.7,43.7,7,0);"></i>
                    </div>

                </td>
                <td class="td7">
                    <div class="Cart_sea_layerFloat02" id="del21247605" delbox="yes" style="display: none;">
                        <div class="Cart_sea_layer02">
                            <ul>
                                <li class="line_height25" style="text-align: center;">您确定要删除吗？</li>
                                <li class="line_height20" style="text-align: center;">
                                    <a href="/DelCartItem.do?mid=0&amp;ItemId=21247605&amp;ObjectId=&amp;ObjectType="
                                       class="sea_keyword" style="text-decoration: none;">确定</a>
                                    &nbsp;&nbsp;&nbsp; <a href="javascript:void(0);"
                                                          onclick="showDelAllCart('del','21247605');" class="sea_keyword"
                                                          style="text-decoration: none;">取消</a>
                                </li>
                            </ul>
                        </div>
                        <div class="botImg">
                            <img src="/hyt/img/mem_little27.gif">
                        </div>
                    </div> <a href="javascript:void(0)" onclick="showDelAllCart('del','21247605');">删除</a>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="conclusion">
            <div class="fl">
                <label>
                    <!--<input type="checkbox" class="allchose" />全选 -->
                </label> <a href="/DelCartItem.do?mid=0">删除所有的商品</a>
            </div>
            3 件商品 总计 <em>￥107.40</em><br>
            -￥0
        </div>
        <div class="conclusion all">
            合计（不含运费）<span id="totalPrice4">￥107.40</span>
        </div>
        <!--</form> -->
        <div class="clear"></div>
    </div>
    <form method="post" action="/Cart/OrderForm.do" style="margin: 0;"
          onsubmit="_gaq.push(['_trackEvent', 'click','购买键', '商品页>立刻购买']);return ture;">
        <div class="submit">
            <a class="fr" type="submit" href="/Cart/OrderForm.do" value="结算"> 结算</a>
            <a href="javascript:goBackUrl();">&lt; 继续购物</a>
        </div>
    </form>
</div>
<!--右侧固定部分-->
<div id="rightDiv" style="Z-INDEX: 10; right: 2px; VISIBILITY: visible; WIDTH: 180px; POSITION: fixed; TOP: 210px; HEIGHT: 160px">
    <table id="index_09_left_servicehotline" width="160px" border="0" align="center" cellpadding="2" cellspacing="0">
        <tbody><tr>
            <td class="customer">
                <div class="customer_service">
                    <a target="_blank" href="#">
                        <img border="0" src="/hyt/img/QQtalk.png" alt="点击这里给我发消息" title="点击这里给我发消息">&nbsp; 客服
                    </a>
                </div>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr class="time">
            <td height="15px" class="index_09_left_servicehotline_h2 time">
                <img style="padding-left: 5px;" src="/hyt/img/QQtalk1.png" alt="">
                400-886-4208
            </td>
        </tr>
        <tr class="time">
            <td height="25px" class="service_time">
                <img src="/hyt/img/QQtalk3.png" alt="">
                服务时间：9:00-20:30</td>
        </tr>
        <tr>
            <td><a href="#">
                <div style="border: 5px solid white;">
                    <img width="150" height="160"
                         src="/hyt/img/20190929051242132.jpg" alt="">
                </div>
            </a></td>
        </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript">
    //设置飘浮目录
    var lastScrollY = 0;
    function heartBeat() {
        var diffY;
        if (document.documentElement && document.documentElement.scrollTop) {
            diffY = document.documentElement.scrollTop;
        }else if (document.body) {
                diffY = document.body.scrollTop
            } else {
                percent = .1 * (diffY - lastScrollY);
                if (percent > 0) percent = Math.ceil(percent);
                else percent = Math.floor(percent);
                lastScrollY = lastScrollY + percent;
            }
        }
        window.setInterval("heartBeat()", 5);
</script>
<!--购物车主体结束-->

<!--购物车页脚开始-->
<div id="cart_footer">
    <!-- 页脚 added by alex 0819-->
    <style type="text/css">
        #myfooter{text-align: center;margin:20px 0;}
        #myfooter a:link,#myfooter a:visited{color:#333;text-decoration:none; }
        #myfooter a:hover{color:#c00;text-decoration:underline;}
        #myfooter a:active{color:#900;}
    </style>
    <div id="myfooter"><!-- 友情链接-->
        <div style="text-align: center; margin: 15px 0 10px">友情链接：
            <a target="_blank" href="http://www.gzxhcbfx.com/">广州新华出版发行集团</a>&nbsp;|
            <a href="http://www.gzsxhsd.com/" target="_blank" style="color: rgb(72, 72, 72); font-family: 微软雅黑, arial; text-align: left;">广州市新华书店集团有限公司&nbsp;</a>
            <span style="color: rgb(110, 110, 110); font-family: 微软雅黑, arial; text-align: left;">|&nbsp;</span>
            <a href="http://www.gzcbs.com.cn/company.asp" target="_blank" style="color: rgb(72, 72, 72); font-family: 微软雅黑, arial; text-align: left;">广州出版社有限公司</a>
            <span style="color: rgb(110, 110, 110); font-family: 微软雅黑, arial; text-align: left;">&nbsp;|</span>
            <a href="http://www.gzbkt.com/" target="_blank" style="color: rgb(72, 72, 72); font-family: 微软雅黑, arial; text-align: left;" se_prerender_url="complete">&nbsp;广州报刊亭有限公司</a>
        </div>
        <div style="text-align: center; margin: 15px 0px 10px">&nbsp;&nbsp;</div>
        <div>
            <a rel="nofollow" href="http://www.gg1994.com/Info/ShowInfo.do?id=898309">关于网站</a> |
            <a rel="nofollow" href="http://www.gg1994.com/Info/ShowInfo.do?id=898311">公司简介</a>
            <!--|  <a href='#'>其他服务</a>  |  <a href='#'>购物指南</a>  -->|
            <a rel="nofollow" href="http://www.gg1994.com/Info/ShowInfo.do?id=898312">法律声明</a> |
            <a rel="nofollow" href="http://www.gg1994.com/Info/ShowInfo.do?id=898313">联系我们</a>
            <!--|  <a href='#'>购物演示</a>-->
        </div>
        <div style="text-align: center; margin: 15px 0px 5px">广州购书中心有限公司 版权所有&#169; 2010 经营许可证：粤B2-20040295
            <a rel="nofollow" target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index" se_prerender_url="loading">粤ICP备10095868号</a>
        </div>
        <!--可信网站图片LOGO安装开始-->
        <a rel="nofollow" href="https://ss.knet.cn/verifyseal.dll?sn=2010122200100003455 ct=df pa=328989">
            <img alt="" src="/hyt/img/seallogo.png"></a>
        <img alt="" src="/hyt/img/footer_img.gif">
        <a rel="nofollow" target="_blank" href="/hyt/img/ktjc.gif">
            <img alt="" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="/hyt/img/ktjc.gif">
        </a>
        <a href="http://www.gg1994.com/" target="_blank">
            <img border="0" alt="" src="hyt/img/startimg.jpg">
            <img alt="" src="/hyt/img/dyh.jpg">
            <img alt="" width="100" hight="100px" style="margin-left: 10px" src="/hyt/img/fwh.jpg">
        </a>
    </div>
</div>
<!--购物车页脚结束-->
<script type="text/javascript">
    if(isHasP && !isChooseP) {
        alert('你有可换购的商品或赠品,请点击“选	择赠品”按钮进行添加');
    }
</script>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<!--引入VUE框架-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入axios框架-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script>
    let gwc = new Vue({
        el:"table",
        data:{
            g_arr:[]
        },
        created:function () {
            let id = location.search.split("=")[1];
            axios.get("/gzbook/selectbyid?id="+id).then(function (response) {
                gwc.gzbook = response.data;
            });
        },
        methods:{
            num:function () {
                axios.get("/gzbook/num?id="+gwc.gzbook.id)
                .then(function (response) {

                })
            }
        }
    })
</script>
</body>
</html>